const mongoose = require('./db')
const Schema = mongoose.Schema

const goodSchema = new Schema({
    name: String,    //名称
    price: Number,     //价格
    icon: String,     //图片
    desc: String,     //简介
    sales: String,     //销量
})
const goodModel = mongoose.model('good', goodSchema)

module.exports = { goodModel }